package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 员工职位 (0: 店长, 1: 收银员, 2: 采购员, 3: 服务员)
 */
@Getter
public enum EmployeePosition {
    STORE_MANAGER(0, "店长"),
    CASHIER(1, "收银员"),
    PURCHASER(2, "采购员"),
    WAITER(3, "服务员");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    EmployeePosition(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
